API Documentation
BitStream.h
1 // BitStream.h
3 //
5 
6 namespace nkMemory
7 {
11  class BitStream
12  {
13  public :
14 
15  // Constructor, destructor
26 
27  // Getters
31  BufferView<> getData () const ;
35  unsigned char getCurrentByte () const ;
39  unsigned int getByteCounter () const ;
45  unsigned int getBitCounter () const ;
46 
47  // Controls
57  unsigned int peekMsb (unsigned int count) ;
67  unsigned int peekLsb (unsigned int count) ;
74  unsigned int readMsb (unsigned int count) ;
81  unsigned int readLsb (unsigned int count) ;
87  void moveForward (unsigned int count) ;
88  } ;
89 }
nkMemory::BitStream
Offers capabilities to read data bit per bit.
Definition: BitStream.h:12
nkMemory::BitStream::readMsb
unsigned int readMsb(unsigned int count)
nkMemory::BufferView
A view over data.
Definition: BufferView.h:18
nkMemory::BitStream::getCurrentByte
unsigned char getCurrentByte() const
nkMemory::BitStream::getBitCounter
unsigned int getBitCounter() const
nkMemory::BitStream::peekMsb
unsigned int peekMsb(unsigned int count)
nkMemory::BitStream::getByteCounter
unsigned int getByteCounter() const
nkMemory::BitStream::peekLsb
unsigned int peekLsb(unsigned int count)
nkMemory::BitStream::BitStream
BitStream(BufferView<> data)
nkMemory::BitStream::getData
BufferView getData() const
nkMemory::BitStream::~BitStream
~BitStream()
nkMemory::BitStream::readLsb
unsigned int readLsb(unsigned int count)
nkMemory::BitStream::moveForward
void moveForward(unsigned int count)
nkMemory
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7